package com.coding.pojo;

import java.io.Serializable;

/**
 * collect
 * @author 
 */
public class Collect implements Serializable {
    private Integer user_id;

    private Integer source_id;

    private String collect_kind;

    private String collect_time;

    private Integer collect_tag;

    private String collect_more1;

    private String collect_more2;

    private static final long serialVersionUID = 1L;

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getSource_id() {
        return source_id;
    }

    public void setSource_id(Integer source_id) {
        this.source_id = source_id;
    }

    public String getCollect_kind() {
        return collect_kind;
    }

    public void setCollect_kind(String collect_kind) {
        this.collect_kind = collect_kind;
    }

    public String getCollect_time() {
        return collect_time;
    }

    public void setCollect_time(String collect_time) {
        this.collect_time = collect_time;
    }

    public Integer getCollect_tag() {
        return collect_tag;
    }

    public void setCollect_tag(Integer collect_tag) {
        this.collect_tag = collect_tag;
    }

    public String getCollect_more1() {
        return collect_more1;
    }

    public void setCollect_more1(String collect_more1) {
        this.collect_more1 = collect_more1;
    }

    public String getCollect_more2() {
        return collect_more2;
    }

    public void setCollect_more2(String collect_more2) {
        this.collect_more2 = collect_more2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Collect other = (Collect) that;
        return (this.getUser_id() == null ? other.getUser_id() == null : this.getUser_id().equals(other.getUser_id()))
            && (this.getSource_id() == null ? other.getSource_id() == null : this.getSource_id().equals(other.getSource_id()))
            && (this.getCollect_kind() == null ? other.getCollect_kind() == null : this.getCollect_kind().equals(other.getCollect_kind()))
            && (this.getCollect_time() == null ? other.getCollect_time() == null : this.getCollect_time().equals(other.getCollect_time()))
            && (this.getCollect_tag() == null ? other.getCollect_tag() == null : this.getCollect_tag().equals(other.getCollect_tag()))
            && (this.getCollect_more1() == null ? other.getCollect_more1() == null : this.getCollect_more1().equals(other.getCollect_more1()))
            && (this.getCollect_more2() == null ? other.getCollect_more2() == null : this.getCollect_more2().equals(other.getCollect_more2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUser_id() == null) ? 0 : getUser_id().hashCode());
        result = prime * result + ((getSource_id() == null) ? 0 : getSource_id().hashCode());
        result = prime * result + ((getCollect_kind() == null) ? 0 : getCollect_kind().hashCode());
        result = prime * result + ((getCollect_time() == null) ? 0 : getCollect_time().hashCode());
        result = prime * result + ((getCollect_tag() == null) ? 0 : getCollect_tag().hashCode());
        result = prime * result + ((getCollect_more1() == null) ? 0 : getCollect_more1().hashCode());
        result = prime * result + ((getCollect_more2() == null) ? 0 : getCollect_more2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", user_id=").append(user_id);
        sb.append(", source_id=").append(source_id);
        sb.append(", collect_kind=").append(collect_kind);
        sb.append(", collect_time=").append(collect_time);
        sb.append(", collect_tag=").append(collect_tag);
        sb.append(", collect_more1=").append(collect_more1);
        sb.append(", collect_more2=").append(collect_more2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}